package com.alm.token.ui.data.bean;

import android.support.annotation.NonNull;

import com.alm.token.base.BaseAdapter;

import java.util.List;

/**
 * Created by en on 2019/7/22.
 */

public class StakingHomeData {


    /**
     * msg : 操作成功
     * status : 0
     * data : {"goods":[{"id":1,"moneyType":1,"status":1,"icon":"https://w.iotoken.net/static/images/35656046013.png","name":"ETH","waitNum":0,"waitHour":24}]}
     * success : true
     * timestamp : 1565663578046
     * total : null
     */

    private String msg;
    private int status;
    private DataBean data;
    private boolean success;
    private long timestamp;
    private Object total;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public Object getTotal() {
        return total;
    }

    public void setTotal(Object total) {
        this.total = total;
    }

    public static class DataBean {
        private List<GoodsBean> goods;

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class GoodsBean extends BaseAdapter.BaseItem implements Comparable<GoodsBean> {

            /**
             * id : 1
             * moneyType : 1
             * status : 1
             * icon : https://w.iotoken.net/static/images/35656046013.png
             * name : ETH
             * waitNum : 0
             * waitHour : 24
             *
             *  "orderStatus":1, // 订单状态 1 预约排队中 2 预约成功 代支付 3 挖矿中
             "orderStatusName":"" // 订单状态名称
             */

            private int id;
            private int moneyType;
            private int status;
            private String icon;
            private String name;
            private int waitNum;
            private int waitHour;
            private int viewType;//0不需要显示图  1需要显示视图

            private int orderStatus;
            private String orderStatusName;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getMoneyType() {
                return moneyType;
            }

            public void setMoneyType(int moneyType) {
                this.moneyType = moneyType;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getWaitNum() {
                return waitNum;
            }

            public void setWaitNum(int waitNum) {
                this.waitNum = waitNum;
            }

            public int getWaitHour() {
                return waitHour;
            }

            public void setWaitHour(int waitHour) {
                this.waitHour = waitHour;
            }

            public int getViewType() {
                return viewType;
            }

            public int getOrderStatus() {
                return orderStatus;
            }

            public void setOrderStatus(int orderStatus) {
                this.orderStatus = orderStatus;
            }

            public String getOrderStatusName() {
                return orderStatusName;
            }

            public void setOrderStatusName(String orderStatusName) {
                this.orderStatusName = orderStatusName;
            }

            public void setViewType(int viewType) {
                this.viewType = viewType;
            }

            @Override
            public int compareTo(@NonNull GoodsBean goodsBean) {
                return this.status > goodsBean.status ? -1 : 1;
            }
        }
    }
}
